package com.applet.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author “XuShao”
 * @date 2024/12/17 16:34
 * @description
 */
@Data
@Schema(title = "更新视频DTO")
public class UpdateVideoDTO {
    @NotBlank(message = "视频活动id不能为空")
    private String id;

    @Schema(description = "发布视频类型")
    @NotBlank(message = "发布视频类型不能为空")
    private String ClassifyId; // 发布视频类型

    @NotBlank(message = "标题不能为空")
    @Size(min = 2, max = 50, message = "标题长度为2~50")
    private String videoTitle; // 视频标题

    @NotBlank(message = "视频不能为空")
    private String file; // 视频路径

    @NotBlank(message = "描述不能为空")
    @Size(min = 5, max = 500, message = "描述长度为5~500")
    private String description; // 视频描述
}
